import React from 'react';
import styles from './CodeExample.module.css';

interface CodeExampleProps {
  children: React.ReactNode;
  title?: string;
  language?: string;
}

export default function CodeExample({
  children,
  title,
  language = 'text',
}: CodeExampleProps) {
  return (
    <div className={styles.codeExample}>
      {title && <div className={styles.title}>{title}</div>}
      <div className={styles.content}>
        {children}
      </div>
    </div>
  );
} 